package com.ruoyi.system.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 日报任务对象 admin_daliy_task
 * 
 * @author ruoyi
 * @date 2021-01-06
 */
public class AdminDaliyTask extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 任务id */
    private Long taskId;

    /** 日报id */
    private Long daliyId;
    /**
     * 用户ID
     */
    private Long userId;

    /** 产品id/项目id */
    @Excel(name = "产品id/项目id")
    private Long productId;

    /** 产品/项目名称 */
    @Excel(name = "产品/项目名称")
    private String productName;

    /** 0.产品/1.项目 */
    @Excel(name = "0.产品/1.项目")
    private Long productType;

    /** 需求来源 */
    @Excel(name = "需求来源 ")
    private Long projectId;

    /** 任务编号 */
    @Excel(name = "任务编号")
    private String taskNumber;

    /** 工作内容 */
    @Excel(name = "工作内容")
    private String taskContent;

    /** 完成百分比 */
    @Excel(name = "完成百分比")
    private String percentage;

    /** 工作时长 */
    @Excel(name = "工作时长")
    private Integer workTime;

    /** 标准工时 */
    @Excel(name = "标准工时")
    private Integer standardTime;

    /** 代码量 */
    @Excel(name = "代码量")
    private Integer codeAmount;

    /** 修改时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "修改时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date modifyTime;

    public void setTaskId(Long taskId) 
    {
        this.taskId = taskId;
    }

    public Long getTaskId() 
    {
        return taskId;
    }


    public void setProductId(Long productId)
    {
        this.productId = productId;
    }

    public Long getProductId() 
    {
        return productId;
    }
    public void setProductType(Long productType) 
    {
        this.productType = productType;
    }

    public Long getProductType() 
    {
        return productType;
    }
    public void setTaskNumber(String taskNumber) 
    {
        this.taskNumber = taskNumber;
    }

    public String getTaskNumber() 
    {
        return taskNumber;
    }
    public void setTaskContent(String taskContent) 
    {
        this.taskContent = taskContent;
    }

    public String getTaskContent() 
    {
        return taskContent;
    }
    public void setModifyTime(Date modifyTime) 
    {
        this.modifyTime = modifyTime;
    }

    public Date getModifyTime() 
    {
        return modifyTime;
    }

    public Long getProjectId() {
        return projectId;
    }

    public void setProjectId(Long projectId) {
        this.projectId = projectId;
    }

    public String getPercentage() {
        return percentage;
    }

    public void setPercentage(String percentage) {
        this.percentage = percentage;
    }

    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    public Integer getWorkTime() {
        return workTime;
    }

    public void setWorkTime(Integer workTime) {
        this.workTime = workTime;
    }

    public Integer getCodeAmount() {
        return codeAmount;
    }

    public void setCodeAmount(Integer codeAmount) {
        this.codeAmount = codeAmount;
    }

    public Long getDaliyId() {
        return daliyId;
    }

    public void setDaliyId(Long daliyId) {
        this.daliyId = daliyId;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Integer getStandardTime() {
        return standardTime;
    }

    public void setStandardTime(Integer standardTime) {
        this.standardTime = standardTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("taskId", getTaskId())
            .append("daliyId", getDaliyId())
            .append("productId", getProductId())
            .append("productType", getProductType())
            .append("taskNumber", getTaskNumber())
            .append("taskContent", getTaskContent())
            .append("remark", getRemark())
            .append("createTime", getCreateTime())
            .append("modifyTime", getModifyTime())
            .toString();
    }
}
